with open(r'C:\Users\hsk\PycharmProjects\vdcode5\data1.csv','r',encoding='utf-8') as f:
    #str=f.read()
    #print(str)
    lt=f.readlines()
    print(lt[0])
    print(type(lt[0]))
    lt[0]=lt[0].replace(', ,',',')
    lt[0]=lt[0].replace('操作,','查看,往期,')
    lt[0]=lt[0].replace(r'[201-1] 行业代码(GB/T4754-2017)','行业代码')
    lt[0] = lt[0].replace('期别(年)', '期别年')
    lt[0] = lt[0].replace('期别(月)', '期别月')
    lt[0]=lt[0].replace(',\n','')
    lt[0] = lt[0].replace(r';', '')
    lt[0] = lt[0].replace(r'1-本月', '本期')
    print(lt[0])
    print('#'*30)
    print(lt)
    ltlist=lt[0].split(',')
    print(ltlist)
    print(ltlist[0])
    print(type(ltlist[0]))


with open(r'C:\Users\hsk\PycharmProjects\vdcode\data1.csv','w',encoding='utf-8') as f:
    f.writelines(lt)